//
//  TranferTableViewCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/21.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "TranferTableViewCell.h"

@implementation TranferTableViewCell


- (void)setupUI{
    
    self.backgroundColor = KWhiteColor;
    
    [self.contentView addSubview:self.pigTypeTipLab];
    [self.contentView addSubview:self.pigTypeNOLab];
    [self.contentView addSubview:self.pigTypePriceLab];
    
}

- (void)setupLayout
{
    
    [self.pigTypeTipLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(15);
        make.right.mas_equalTo(-100);
        make.height.mas_equalTo(21);
    }];
    
    [self.pigTypeNOLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(self.pigTypeTipLab.mas_bottom).offset(4);
        make.right.mas_equalTo(-100);
        make.height.mas_equalTo(18);
    }];
    
    [self.pigTypePriceLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(24);
        make.right.mas_equalTo(-15);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(20);
    }];
    
    
    self.pigTypeTipLab.text = @"五花肉";
    self.pigTypeNOLab.text = @"猪猪编号：749237593652322";
    self.pigTypePriceLab.text = @"¥216";
    
}



- (UILabel *)pigTypeTipLab{
    
    if (! _pigTypeTipLab){
        _pigTypeTipLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0x333333) font:mFont(15) textAliment:0];
        }
    return _pigTypeTipLab;
}


- (UILabel *)pigTypeNOLab{
    
    if (!_pigTypeNOLab){
        _pigTypeNOLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0xB2B2B2) font:mFont(13) textAliment:0];
    }
    return _pigTypeNOLab;
}


- (UILabel *)pigTypePriceLab{
    
    if (!_pigTypePriceLab){
        _pigTypePriceLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0x333333) font:mMediumFont(17) textAliment:2];
    }
    return _pigTypePriceLab;
}


@end
